package ${package}.controller.dto;

import com.dragon.bean.SerializableDTO;
import com.dragon.results.util.response.PageVO;
import com.dragon.util.QueryParam;
import com.dragon.util.QueryType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * ${tableComment} 查询参数对象
 * </p>
 *
 * @author ${author}
 * @since ${since}
 */

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ToString
@ApiModel("${tableComment} 查询参数对象")
public class ${className}SearchDTO extends SerializableDTO<${className}SearchDTO> {
<#if columns??>
<#list columns as column>
    <#if column.searchInfo??>
    /**
     * ${column.columnComment}
     */
    @ApiModelProperty("${column.columnComment}")
    @QueryParam(propName = "${column.searchInfo.propName}", type = QueryType.${column.searchInfo.queryType}<#if column.searchInfo.blurry??>,blurry = "${column.searchInfo.blurry}"</#if>)
    private ${column.fieldType} ${column.fieldName};
    </#if>
</#list>
    /**
     * 分页参数
     */
    @ApiModelProperty("分页参数")
    private PageVO page;
</#if>
}